<%@ include file="header.jsp"%>
<%@page import="com.semp.jadoma.core.model.Dog"%>

<html:form action="/dog/add">

<div class="formdiv">
	<div class="formdiv_title">
		<bean:message key="page.dog.add.title"/>
	</div>
	
	
	<div class="formdiv_line">
		<p class="formdiv_label">
			<bean:message key="dog.infos.name"/> :
		</p>
		<p class="formdiv_field"><html:text property="name" /></p>
	</div>
	
	<div class="formdiv_line">
		<p class="formdiv_label">
			<bean:message key="dog.infos.nickname"/> :
		</p>
		<p class="formdiv_field"><html:text property="nickName" /></p>
	</div>
	
	<div class="formdiv_line">
		<p class="formdiv_label">
			<bean:message key="dog.infos.birthday"/> :
		</p>
		<p class="formdiv_field">
			<html:text property="birthDay" />
			&nbsp;<img src="#" id="myimage" height="10" width="10"/>
			<script type="text/javascript">
				Calendar.setup({
					inputField     :    "birthDay",
					ifFormat       :    "%m/%d/%Y",
					button         :    "myimage",
					align          :    "Tl",
					singleClick    :    false
				});
			</script>
		</p>
	</div>
	
	<div class="formdiv_line">
		<p class="formdiv_label">
			<bean:message key="dog.infos.sex"/> :
		</p>
		<p class="formdiv_field">
			<html:select property="sex">
				<html:option value="<%=Dog.SexType.MALE.getCode().toString()%>">
					<bean:message key="dog.infos.sex.male" />
				</html:option>
				<html:option value="<%=Dog.SexType.FEMALE.getCode().toString()%>">
					<bean:message key="dog.infos.sex.female" />
				</html:option>
			</html:select>
		</p>
	</div>
	
	<div class="formdiv_line">
		<p class="formdiv_label">
			<bean:message key="dog.infos.color"/> :
		</p>
		<p class="formdiv_field">
			<html:select property="color">
				<html:option value="<%=Dog.ColorType.BLUE.getCode().toString()%>">
					<bean:message key="dog.infos.color.blue" />
				</html:option>
				<html:option value="<%=Dog.ColorType.CHOCOLATE.getCode().toString()%>">
					<bean:message key="dog.infos.color.chocolate" />
				</html:option>
				<html:option value="<%=Dog.ColorType.DEER.getCode().toString()%>">
					<bean:message key="dog.infos.color.deer" />
				</html:option>
			</html:select>
		</p>
	</div>
	
	<div class="formdiv_line">
		<p class="formdiv_label">
			<bean:message key="dog.infos.peel"/> :
		</p>
		<p class="formdiv_field">
			<html:select property="peel">
				<html:option value="<%=Dog.PeelType.SHORT.getCode().toString()%>">
					<bean:message key="dog.infos.peel.short" />
				</html:option>
				<html:option value="<%=Dog.PeelType.BRUSH.getCode().toString()%>">
					<bean:message key="dog.infos.peel.brush" />
				</html:option>
			</html:select>
		</p>
	</div>
	
	<div class="formdiv_line">
		<p class="formdiv_label">
			<bean:message key="dog.infos.size"/> :
		</p>
		<p class="formdiv_field"><html:text property="size" /></p>
	</div>
	
	<div class="formdiv_line">
		<p class="formdiv_label">
			<bean:message key="dog.infos.weight"/> :
		</p>
		<p class="formdiv_field"><html:text property="weight" /></p>
	</div>
	
	<div class="formdiv_line">
		<p class="formdiv_label">
			&nbsp;
		</p>
		<p class="formdiv_field">
			<html:submit>
				<bean:message key="page.dog.add.submit" />
			</html:submit>
			</html:form>
		</p>
	</div>
	
	<div class="formdiv_footer"/>
	
</div>


<%@ include file="footer.jsp"%>
